{
  "properties" : { },
  "id" : "68ef453243ee4865a3754fc9d5dc7ef5",
  "script" : null,
  "groupId" : "43da313fdeaa495798cf783e6cf83479",
  "name" : "修改ip状态",
  "createTime" : 1727070847037,
  "updateTime" : 1726046021694,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "update",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\r\n    \"ip\": \"1.1.1.2\",\r\n    \"deviceName\": \"\",\r\n    \"usageStatus\": \"0\",\r\n    \"allocationStatus\": \"1\",\r\n    \"id\": \"1833410938070503425\",\r\n    \"ipType\": \"32\",\r\n    \"groupId\": \"18ac461de04346c78bf459a881a03ab3\",\r\n    \"mark\": \"\",\r\n    \"realTime\": \"\",\r\n    \"businessName\": \"\",\r\n    \"gateway\": \"\",\r\n    \"masterIp\": \"\",\r\n    \"devicename\": \"\",\r\n    \"rowId\": \"1\",\r\n    \"updateFlag\": 2\r\n}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": false\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
 String updateFlag = body.updateFlag::string;
 //更新标识 1-修改应用网段，2-其他
 if ("1".equals(updateFlag)) {

     return db.update("""
       update   ndmp_ip_source_manager set allocation_Status=#{body.allocationStatus}
              <if test="body.deviceName != null and body.deviceName != ''">
                  , business_name=#{body.deviceName}
              </if>
     where  gateway =#{body.rtGateway} or gateway =#{body.nrtGateway}
     """) == 1
 } else {
     return db.update("""
       update   ndmp_ip_source_manager
        set allocation_Status=#{body.allocationStatus}
        <if test="body.deviceName != null and body.deviceName != ''">
            , business_name=#{body.deviceName}
        </if>
        <if test="body.usageStatus != null and body.usageStatus != ''">
            , usage_Status=#{body.usageStatus}
        </if>
        where ip=#{body.ip}
     """) == 1
 }